let platform = process.platform;

//console.log(platform);  //win32

let fullPath = '';
switch(platform){
    case 'win32':
        fullPath = __dirname + "\\Read.txt"
        break;
    case "linux":
        fullPath = __dirname + "/Read.txt"
        break;
}
console.log(fullPath);